package com.hxkj.client.service;

import com.hxkj.domain.po.*;
import com.platform.common.domain.result.ParameterDataStruct;
import com.platform.common.domain.result.ResultPageStruct;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;


/**
 * @InterfaceName ColumnArticleServiceClient
 * @Description TODO
 * @Author Mr.zheng
 * @Date 2018/7/2 15:18
 * @Version 1.0
 */

@FeignClient(name = "cms-article")
public interface ColumnArticleServiceClient {

    /**
     * @author Mr.zheng
     * @Description getColumnArticle 获取分类文章列表
     * @Date 15:09 2018/7/2
     * @Param [column, pageParam]
     * @return java.util.List<com.hxkj.domain.po.OptionColumnTree>
     **/
    @RequestMapping(value = "/columnArticle/getlist" , method = RequestMethod.POST,consumes  ="application/json;charset=UTF-8")
    ColumnArticleTree getColumnArticle(@RequestBody ParameterDataStruct<Column> parameterDataStruct) throws Exception;


    /**
     * @author Mr.zheng
     * @Description getTagsArticle 获取tags标签关联的文章列表
     * @Date 17:41 2018/7/2
     * @Param [parameterDataStruct]
     * @return java.util.concurrent.Callable<java.util.List<com.hxkj.domain.po.Article>>
     **/
    @RequestMapping(value = "/columnArticle/gettaglist", method = RequestMethod.POST,consumes  ="application/json;charset=UTF-8")
    ResultPageStruct<Article> getTagsArticle(@RequestBody ParameterDataStruct<Tags> parameterDataStruct) throws Exception;
}
